package Exists;

import java.util.Scanner;

public class Demo05 {
    public static void main(String[] args) {


        String[] arr = {"星期一", "星期二", "星期三", "星期四", "星期五", "星期六", "星期日"};

        Scanner scanner = new Scanner(System.in);
        System.out.println("请输入一个整数");
        int res = scanner.nextInt();
        try {

            System.out.println(arr[res - 1]);

        } catch (ArrayIndexOutOfBoundsException e) {
            System.out.println("你输入的数字发生,越界异常");
        }
    }


}
